<?php 
	$linkHome = $this->cmsUrl(array(
								'module' => 'default',
								'controller' => 'index',
								'action' => 'index'
								));
	$siteConfig = new Zendvn_Model_Table_SiteConfig();
	$siteConfig = $siteConfig->getItem(array('id' => 1));
	
	$config = new Zendvn_Controller_Config(array('module'=>'admin',
												'fileConfig'=>'site-config.ini'));
	$pictureConfig = $config->getConfig('item');
	
	$logo = $siteConfig['logo'];
	$site_name = $siteConfig['site_name'];
	if(file_exists($pictureConfig['uploadDir'] . '/' . $logo) && !empty($logo)){
		$logo = $pictureConfig['uploadUrl'] . '/' . $logo;
	}else{
		$logo = 'images/logo.png';
	}
?>

<div class="head_logo">
	<a href="<?php echo $linkHome?>"><img alt="<?php echo $site_name?>" title="<?php echo $site_name?>" src="<?php echo $logo?>" /></a>
</div>